package cn.bx.bid;

import cn.bx.bid.service.ProjectService;

import cn.bx.bid.service.UserService;
import cn.bx.bid.util.LogUtil;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;

public class Test {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("spring*.xml");

//        UserBiz bzi=ac.getBean(UserBiz.class);
//        System.out.println(bzi.login("admin","123456"));
        UserService
                userService = ac.getBean(UserService.class);
        UserService
                userService2 = ac.getBean(UserService.class);
        LogUtil.info(userService==userService2);
        DispatcherServlet d=null;

//        System.out.println(userService.login("admin","123456"));
        //ProjectService projectService=ac.getBean(ProjectService.class);
        //project .evalute=3,lostnum=1,reason=taileng
       // projectService.profnotPresentProject(3L,365L,"天气太冷");
    }
}
